<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="taglibs.jsp"%>
<%@include file="RolePowerManager.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
  <link rel="stylesheet" href="${ctx}/css/common.css" type="text/css"></link>
  <link rel="stylesheet" href="${ctx}/css/reset.css" type="text/css"></link>
  
 <script type="text/javascript" src="${ctx}/js/transfer/transfer.js"></script>
  <script type="text/javascript" src="${ctx}/js/jquery-1.7.2.js"></script>
  
  <script type="text/javascript" src="${ctx}/js/jquery.easydrag.handler.beta2.js"></script>
   <script type="text/javascript" src="${ctx}/js/transfer/transfer.js"></script>
 <script type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"></script>
 
 <script type='text/javascript' src='${ctx}/dwr/interface/TansferMag.js'></script>
 <script type='text/javascript' src='${ctx}/dwr/interface/DeptDAOImpl.js'></script>
 <script type='text/javascript' src='${ctx}/dwr/interface/DutyDAOImpl.js'></script>
  <script type='text/javascript' src='${ctx}/dwr/interface/EmpDAOImpl.js'></script>
  <script type='text/javascript' src='${ctx}/dwr/interface/dept_duty_empDAOImpl.js'></script>
	<script type='text/javascript' src='${ctx}/dwr/engine.js'></script>
	<script type='text/javascript' src='${ctx}/dwr/util.js'></script>

  </head>
  
  <body onload="getDept()">
  	  <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
			<TR height=28>
				<TD background=${ctx}/images/title_bg1.jpg style="FONT-SIZE: 12px;">
					当前位置:人事调配管理 >> 人事变动管理
				</TD>
			</TR>
			<TR>
				<TD bgColor=#b1ceef height=1></TD>
			</TR>
			<TR height=20>
				<TD background=${ctx}/images/shadow_bg.jpg></TD>
			</TR>
		</TABLE>
		<form action="${ctx }/serchEmp" method="post" id="form">
	  <div class="query" >
	  <div class="querytype">
	  	<label>查询条件：</label>
	  	<select class="queryselect" name="query_t">
			<option value="zhengshu">
			证书名称
			</option>
		</select>
		<input class="queryinput" type="text" name="querytype" id="querytype"/>
	  </div>
	  <div class="querytime">
	  	<div class="querybtn">
	  
	  		<span class="STYLE1"><img src="${ctx}/images/a1.gif" width="9" height="9" /></span>
            <span class="STYLE1"> </span><a style="cursor: pointer;" onclick="serch()">查询</a><span class="STYLE1"></span>
	  		
	  	</div>
      </div>
	  <div class="clear"></div>
	  </div>
	  </form>
        <div id="main">
        <table id="detail_t">
          <tr>
            <th>序号</th>
            <th>员工编号</th>
            <th>证书名称</th>
            <th>证书日期</th>
            <th>更多操作</th>
          </tr>
            <c:forEach items="${page.list}" var="ty" varStatus="stat">
          <tr>
          
          	<td>${stat.index+1}</td>
          	<td>${ty.emp.empno}</td>
          	<td>${ty.cername}</td>
          	<td>${ty.deadline}</td>
            <td>
            <div align="center">
            <span class="STYLE1"><img src="${ctx}/images/001.gif" width="9" height="9" /></span>
            <span class="STYLE1"> </span><a href="#" onclick="addtransfer('${ty.emp.id}')">进行调动</a><span class="STYLE1"></span>
	  	
            </div>
            </td>
          </tr>
          </c:forEach>
        </table>
			 <div class="manu">共${page.totalCount}条记录当前第<font color="#ff6600">${page.pageNo}/${page.pageCount}</font>页
				 <a href="serchEmp?pageNo=${1}">首页</a>
				  <a href="serchEmp?pageNo=${page.pageNo-1}">上一页</a>
				  <a href="serchEmp?pageNo=${page.pageNo+1}">下一页</a>
				  <a href="serchEmp?pageNo=${page.pageCount}">末页</a> 每页显示<input type="text" id="pageSize"  name="pageSize" size="4"/>条<input type="submit" value="提交" onclick="changePageSize_ac()"/> 
		</div>
		</div>
		<form action="addServlet" method="post">
<div id="pop_div" class="pop_box">
			<div class="p_head">
				<span class="p_h_title">审核人事调配信息</span> <span><a
					class="p_h_close" onclick="hideDiv('pop_div2');" title="close">X</a>
				</span>
			</div>
			<div class="p_box_body" id="p_b_body">
				<div class="p_con">
					<table id="p_con_t">
					  <tr>
					    <td class="t1">员工编号：<input type="hidden" id="empno" name="empno" value=""/></td>
					    <td id="EmpTransfer"></td>
					  </tr>
					  <tr>
					    <td class="t1">调动前部门：<input type="hidden" id="b_dept" name="b_dept" value=""/></td>

					    <td id="beforedept2">
					    </td>

					  </tr>
					  <tr>
					    <td class="t1">调动后部门：</td>

					    <td><select id="dept2" name="dept_n2" >
					   		<option value=""></option>
					    </select></td>

					  </tr>
					  <tr>
					    <td class="t1">调动前职务：<input type="hidden" id="b_duty" name="b_duty" value=""/></td>

					    <td id="beforeduty2"></td>

					  </tr>
					  <tr>
					    <td class="t1">调动后职务：</td>

					    <td><select id="duty2" name="duty_n2" >
					   		<option value=""></option>
					    </select></td>

					  </tr>
					  <tr>
					    <td class="t1">调动时间：</td>
					    <td><input type="text" name="d_time"  onClick="WdatePicker()" size="10"/></td>
					  </tr>
					  <tr>
					    <td class="t1">调动原因：</td>
					    <td><input type="text" name="reason">
					    </td>
					  </tr>
					  <tr>
					  	<td></td>
					  	<td><input type="submit" value="添加"/></td>
					  </tr>
					</table>
				</div>
			</div>
		</div>     
		</form>
  </body>
</html>
